# -*- coding: utf-8 -*-
"""
Created on Wed Apr 10 16:40:26 2019

@author: solydo
"""
#绘制F1等位线图

import numpy as np
import matplotlib.pyplot as plt

plt.figure()
plt.axis([0,1,0,1])
plt.xlabel('R')
plt.ylabel('P')

F1=np.arange(0.1,1,0.1)
for f1 in F1:
    R=np.arange(f1/2,1,0.01)
    P=f1*R/(2*R-f1)
    plt.plot(R,P,c='k')
    plt.text(f1+0.02,f1-0.02,"F1=%.1f"%f1)
plt.plot([0,1],[0,1],c='r')
plt.show()